<?php
/**
 * 积分商城
 */
namespace app\admin\controller\golds;

use app\admin\controller\AuthController;
use service\JsonService;

class Goods extends AuthController
{
	public $model = '\app\common\model\GoldsGoods';

    use \traits\ShotcutControllerTrait;
	
	public function _save($data)
	{
		if ( isset($data['albums']) && is_array($data['albums']) ) {
			$data['albums'] = json_encode($data['albums']);
		}
		return $data;
	}
} //Class End
